package com.todo.strategy.offline.application.remote;

import com.todo.biz.service.api.request.CommentDetectionRequest;
import com.todo.biz.service.api.request.ContentDetectionRequest;
import com.todo.biz.service.api.request.ImgDetectionRequest;
import com.todo.biz.service.api.response.BaseExamineResponse;
import com.todo.common.common.entity.response.BizResponse;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author azhebuxing
 * @date 2025/2/28 02:49
 * @description
 */
@FeignClient(name = "todoBizBaseService", url = "http://localhost:18100")
public interface BizExamineRemoteService {

    @Operation(summary = "文本内容检测")
    @PostMapping("/api/biz/examine/contentDetection")
    BizResponse<BaseExamineResponse> contentDetection(ContentDetectionRequest request);

    @Operation(summary = "评论内容检测")
    @PostMapping("/api/biz/examine/commentDetection")
    BizResponse<BaseExamineResponse> commentDetection(CommentDetectionRequest request);

    @Operation(summary = "图片内容检测")
    @PostMapping("/api/biz/examine/imgDetection")
    BizResponse<BaseExamineResponse> imgDetection(ImgDetectionRequest request);
}
